class Member < ActiveRecord::Base
  belongs_to :department
  has_many :receptions
  #default_scope :order => 'identifier'
  validates_presence_of :department_id
  validates_uniqueness_of :identifier
  validates_length_of :identifier, :within => 1..50
  validates_length_of :name, :within => 1..50
end
